/*
 * Copyright (c) 2018-2025, duneng All rights reserved.
 *
 * Author: wq (meteor85@163.com)
 */
import request from '@/router/axios'

export function addObj(obj) {
    return request({
        url: '/admin/province/add',
        method: 'post',
        data: obj
    })
}

export function fetchList(query) {
    return request({
        url: '/admin/province/provincePage',
        method: 'get',
        params: query
    })
}

export function getObj(id) {
    return request({
        url: '/admin/province/'+id,
        method: 'get',
    })
}

export function putObj(obj) {
    return request({
        url: '/admin/province/edit',
        method: 'put',
        data: obj
    })
}

export function delObj(id) {
    return request({
        url: '/admin/province/' + id,
        method: 'delete'
    })
}

export function getSensorData(){
    return request({
        url:'/admin/sensorData/getSensorData',
        method:'get'
    })
}


export function getSensorFlowData(){
    return request({
        url:'/admin/sensorData/getSensorFlowData',
        method:'get'
    })
}

export function getCityListByProvinceId(id)
{
    return request({
        url:'/admin/province/city',
        method:'get',
        params:{
            id:id,
        }
    })
}

